package org.jeecg.modules.demo.checkOrder.service;

import org.jeecg.modules.demo.checkOrder.entity.CheckOrderRk;
import org.jeecg.modules.demo.checkOrder.entity.checkOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.soOrderDetail.entity.SoOrderDetail;
import org.jeecg.modules.demo.warehouseorder.entity.WarehouseOrder;
import org.springframework.beans.factory.annotation.Autowired;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: checkOrder
 * @Author: jeecg-boot
 * @Date:   2022-01-19
 * @Version: V1.0
 */
public interface IcheckOrderService extends IService<checkOrder> {

	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	public String getMaxCode();

	//提取库存
	public Boolean addCheckOrderAndRk(checkOrder checkOrder, List<CheckOrderRk> orderRks);

	public boolean check(checkOrder checkOrder,List<CheckOrderRk> orderRks,String precode);

	public boolean unCheck(checkOrder checkOrder);

	public checkOrder getByPdNo(String str);

	public boolean deleteOrder(checkOrder checkOrder);

	public List<checkOrder> getByWhNum(String str);

	public List<WarehouseOrder> getWareHouseOrderByPdNo(String str);

	public List<SoOrderDetail> getSoOrderDetailsByPdNo(String str);
}
